import $ from 'jQuery'
import CreatePage from './pages/CreatePage/CreatePage'

export function init(){
  this._data = null
  return this
}

export function render( selector ){
  const to = $(selector)
  if( !$ || to.length <= 0 ){
    throw new Error('Cannt found the El:' + selector )
  }

  const page = new CreatePage()
  page.render( to )
  return this
}


export default {
  init,
  render
}